package com.woniuxy.user.service;

import com.woniuxy.commons.entity.*;

import java.util.List;

/**
 * @author 吴毛伟
 * @date:2020/7/16 17:45
 * @description:
 */
public interface UserService {
    public int getExam(int uid);

    public int selectScore(int uid);

    int insertMap(int uid, int id);

    User selectUserByUname(String uname);

    CourseChapter findChapterByCid(int cid);

    int insertAnswers(ExamAnswer examAnswer);

    List<ExamAnswer> getAnswer(int examId, int uid);

    int insertByExamIdAndUserId(int paperId, int uid);

    ExamHistory findSatusByExamIdAndUserId(int paperId, int uid);

    int updateStatus1(int paperId, int uid);

    int updateStatus2(int paperId, int uid);

    List<User> selectAllUser();
}
